public class CarDirector {

    private CarBuilder builder;

    public CarDirector(CarBuilder concreteBuilder){
        this.builder=concreteBuilder;
    }

    public ProductCar constructCar(){
        this.builder.buildEngin();
        this.builder.buildTire();
        return this.builder.getCarProduct();
    }

    public void  setBuilder(CarBuilder builder){
        this.builder=builder;
    }

}
